<layout name="Qingtaoke/default" />
<style>
    a,a:hover{
        color: #fff;
        text-decoration: none;
    }

</style>
<div class="col-md-offset-1 col-md-10">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h5>修改关键词</h5>
        </div>
        <div class="panel-body">
            <form action="{:U('Keywords/edit')}" method="post">
                <div class="form-group">
                    <label for="apikey">关键词名:</label>
                    <input type="text" name="keyword" class="form-control" value="<?php echo $data['keyword']?>">
                </div>
                <div class="form-group">
                    <label for="v">排序:</label> <em>默认999</em>
                    <input type="text" name="order" class="form-control" value="<?php echo $data['order']?>">
                </div>
                <div class="form-group">
                    <label for="t">是否热词:</label> <em>否</em>
                    <select name="hot" class="form-control">
                        <option value="0" <?php if($data['hot'] == 0) echo 'selected'?>>否</option>
                        <option value="1"  <?php if($data['hot'] == 1) echo 'selected'?>>是</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="t">是否热词:</label> <em>否</em>
                    <select name="is_show" class="form-control">
                        <option value="0" <?php if($data['is_show'] == 0) echo 'selected'?>>否</option>
                        <option value="1"  <?php if($data['is_show'] == 1) echo 'selected'?>>是</option>
                    </select>
                </div>
                <input type="hidden" name="id" value="<?php echo $data['id']?>">
                <button type="submit" class="btn btn-primary">修改</button>
            </form>
        </div>
    </div>
</div>

